package com.kiven.thread;

public class SynchronizedTest2 {
	public void doGo() {
		System.out.println(Thread.currentThread().getName());
		for(int i=0; i<100; i++) {
			System.out.print(i);
		}
	}
	
	public static void main(String[] args) {
		SynchronizedTest2 st1 = new SynchronizedTest2();
		SynchronizedTest2 st2 = new SynchronizedTest2();
		
		st1.doGo();
		st2.doGo();
	}
}
